package com.cma.model.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 数据库表【tw_user】对应的entity对象
 *
 * @author bjs
 * @date 2016-12-27 16:16:05
 */
@Entity
@Table(name = "tw_user")
public class TwUser extends BaseDbEntity implements Serializable {


    // name
    @Column(name = "name", nullable = false)
    private java.lang.String name;


    // password
    @Column(name = "pwd", nullable = false)
    private java.lang.String pwd;


    // salt
    @Column(name = "salt", nullable = false)
    private java.lang.String salt;


    // ================================================================================================


    /**
     * 获取对象的属性【name】
     *
     * @return java.lang.String
     */
    public java.lang.String getName() {
        return name;
    }

    /**
     * 设置对象的属性【name】
     *
     * @param name
     */
    public void setName(java.lang.String name) {
        this.name = name;
    }

    /**
     * 获取对象的属性【password】
     *
     * @return java.lang.String
     */
    public java.lang.String getPwd() {
        return pwd;
    }

    /**
     * 设置对象的属性【password】
     *
     * @param pwd
     */
    public void setPwd(java.lang.String pwd) {
        this.pwd = pwd;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    // ================================================================================================

    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("TwUser=====>");
        sb.append("{");
        sb.append("id=>" + this.id).append(", ");
        sb.append("name=>" + this.name).append(", ");
        sb.append("pwd=>" + this.pwd).append(", ");
        sb.append("salt=>" + this.salt).append(", ");
        sb.append("createTime=>" + this.createTime).append(", ");
        sb.append("updateTime=>" + this.updateTime).append(", ");
        sb.append("}");
        return sb.toString();
    }

}